/// /// Load tin from directory /// ESRI tin is a folder, which contains eight fixed-name ADF files. /// /// Parent directory of tindataset /// Tindataset name /// Public Itin
1#include 2#include 3 4 /*This code was used to cope with the problem of the eight queens.5 * Array Borad[9][9] is a virtual borad.6 * Line 0 and volumn 0 are ignored.7 * At first we find a place to set a queen on it and then mark this queen ' s8 * domain. The marking domain is add 1 on the board[line][volumn],9 * So the number of Board[line][volumn] means this p
Back up a script [plain] # for creating a VM image by copying it. /Bin/sh machine = $1 mac = $2 ip = $3 if [-z "$ machine"]; then echo "usage: sh $0 machine mac ip "exit fi source_bytes = 'fdisk-ucl/dev/vbd/test00 | grep test00 | grep-Eo" [0-9] + bytes "| cut- d ""-f1 'source_m =$ ($ source_bytes/1024/1024 )) echo "creating new logic volumn $ machine" lvcreate-L $ {source_M} M-n $ machine vbd echo "copy data from lv test00" dd if =/dev/vbd/test00 =/de
walker, but I never walk backward.8. Our position are not important, important are the direction we want to go.9. Sometimes you'll never know the true value of a moment until it becomes a memory.All winds is contrary. to a crazy ship.There is no road in the world, there be many people who has gone, and they has become the the-the-the-the-same.No accumulation, no thousands of miles, no small streams, no rivers.Nothing in the world is difficult for one of who sets he mind to it.When you want-give
. getExternalStorageDirectory (). getAbsolutePath () + "/oschina/audio"; // The root path of the audio recording file private String mAudioPath; // the path of the audio to be played private boolean mIsRecording; // whether the recording is private boolean mIsPlaying; // whether the private OnPlayListener listener is being played; // initialize the recorder pr Ivate void initRecorder () {mRecorder = new MediaRecorder (); mRecorder. setAudioSource (MediaRecorder. audioSource. MIC); mRecorder. set
cup object with three properties. We notice that property design is also an object with attributes. var Cup = {color: " white ",
//
default value of properties weight:0.5
, Material: "China"
" Pink ", Mark: "Rose" ", fill: function (liquid, volumn) { //
todo Console.log ("the" + this . Material + "Cup is filled with" + volumn + "litre" + liquid +
data file (we built it earlier)
128 is the smallest assignable number of sector
65536 is the least usable sector water mark, which is a threshold
1 represents an additional parameter
Skip_block_zeroing is an additional parameter, which indicates that a block with 0 padding is skipped
Then we can see a device mapper:~hchen$ sudo ll/dev/mapper/hchen-thin-poollrwxrwxrwx. 1 root root 7 23:24/dev/mapper/hchen-thin-pool. /dm-4Next, we're not done with the initial, a
# scripts are only for Exchange learning and use!
# The current version of the script is 1.0. Implements the creation of physical volumes, removing, changing (enabling/disabling assignments), scanning, viewing features.
# The following will complement the management of volume groups and logical volumes and be integrated into a Linux LVM TOOL. Like the Smit of Aix. Although, it can only manage LVM.
# The script has been tested on red Hat Enterprise Linux 5.4 64bit. Applies in principle to Rhel
In my opinion, there are two advantages of using LVM: it is convenient to dynamically expand/shrink partition size; it is not limited by the number of partitions.There is a very good LVM usage Introduction At the howtoforge Website: http://www.howtoforge.com/linux_lvmHere we record our operation process:
1. Create physical volumn using pvcreate[Root @ jcwkyl ~] # Fdisk-l
Disk/dev/SDA: 320.0 GB, 320072933376 bytes255 heads, 63 sectors/track, 38913 Cyli
LVM logical Volumn Manager Logical Volume management
can increase or decrease the size of the volume space freely
PV Physical volumn (physical volume) The actual partitioning device is zoned PV, PV is the LVM physical mark
VG Volumn Group (volume group) divides PV into VG, which is equivalent to combining LVM to use a large hard drive
PE physical extend (phys
. Maybe I can tick the article of interest and then download it. When checked, this element's class will change from Noselectrow to Selectedrow. The relevant code is as follows:function hightlightrowaction (rowid) { var thisrow = $ ("#" +rowid); if ($ (Thisrow). Hasclass ("Selectedrow")) { $ (thisrow). Removeclass ("Selectedrow"); $ (Thisrow). addclass ("Noselectrow"); Else { $ (thisrow). addclass ("Selectedrow"); $ (Thisrow). Removeclass ("Noselectrow");}
Get MirrorDocker pull MySQLTo start the container:Docker run-p 3306:3306--name pf-mysql-v/usr/pf/docker/volumn/mysql_conf/my.cnf:/etc/mysql/my.cnf-v/USR/PF /docker/volumn/logs/mysql:/logs-v/usr/pf/docker/volumn/db/mysql:/mysql_data-e mysql_root_password=123456-d 0D16D0A97DD1
-P 3,306:3,306: Map the container's 3306 port to the host's 3306 port
-V $PWD/conf
ext3/dev/sdb1/mnt/dataLsof/mnt/data to check which processes are reading and writing a file systemFile system configuration file automatically mounted by the system/etc/fstabCheck File system utilization df-h df-sh ** *** RAIDCreate raid1 with backupMdadm -- create/dev/md0 -- level = raid1 -- raid-devices = 2/dev/sdb1/dev/sdc1-- Spare-devices = 1/dev/sdd1Configuration File:/etc/mdadm. conf/etc/mdaadm. conf* ***** Logical volumeDd if =/dev/zero of =/dev/sdg bs = 512 count = 1Pvcreate/dev/md0Pvs
LVM hierarchy (bottom to top ):
Ext3-> lv (logical volumn)-> pv (physical volumn)-> vg (volumn group)
LVM creation steps (for example, creating LVM on/dev/sdb ):
1. format the hard disk: fdisk/dev/sdb
N: Create a new disk partition (which can be a primary partition or an extended partition)
T: Change the partition to the Linux LVM format. The format is 8e.
LVM is short for LogicalVolumeManager (logical volume management). It is a mechanism for managing disk partitions in Linux. it is implemented by HeinzMauelshagen on the Linux2.4 kernel. I. general idea: partition into LVM format (8e) -- create PV -- create VG -- create LV -- Format partition -- MOUNT partition -- e2fsad
LVM is short for Logical VolumeManager (Logical volume management). it manages disk partitions in Linux. it is implemented by HeinzMauelshagen in Linux 2.4 kernel.
I. overall thi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.